<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>posix::stream_descriptor::operator=</title>
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../../index.html" title="Asio">
<link rel="up" href="../posix__stream_descriptor.html" title="posix::stream_descriptor">
<link rel="prev" href="non_blocking/overload3.html" title="posix::stream_descriptor::non_blocking (3 of 3 overloads)">
<link rel="next" href="read_some.html" title="posix::stream_descriptor::read_some">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../posix__stream_descriptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="read_some.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.posix__stream_descriptor.operator_eq_"></a><a class="link" href="operator_eq_.html" title="posix::stream_descriptor::operator=">posix::stream_descriptor::operator=</a>
</h4></div></div></div>
<p>
          <a class="indexterm" name="asio.indexterm.posix__stream_descriptor.operator_eq_"></a> 
Move-assign
          a <a class="link" href="../posix__stream_descriptor.html" title="posix::stream_descriptor"><code class="computeroutput">posix::stream_descriptor</code></a>
          from another.
        </p>
<pre class="programlisting">stream_descriptor &amp; operator=(
    stream_descriptor &amp;&amp; other);
</pre>
<p>
          This assignment operator moves a stream descriptor from one object to another.
        </p>
<h6>
<a name="asio.reference.posix__stream_descriptor.operator_eq_.h0"></a>
          <span><a name="asio.reference.posix__stream_descriptor.operator_eq_.parameters"></a></span><a class="link" href="operator_eq_.html#asio.reference.posix__stream_descriptor.operator_eq_.parameters">Parameters</a>
        </h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">other</span></dt>
<dd><p>
                The other <a class="link" href="../posix__stream_descriptor.html" title="posix::stream_descriptor"><code class="computeroutput">posix::stream_descriptor</code></a>
                object from which the move will occur.
              </p></dd>
</dl>
</div>
<h6>
<a name="asio.reference.posix__stream_descriptor.operator_eq_.h1"></a>
          <span><a name="asio.reference.posix__stream_descriptor.operator_eq_.remarks"></a></span><a class="link" href="operator_eq_.html#asio.reference.posix__stream_descriptor.operator_eq_.remarks">Remarks</a>
        </h6>
<p>
          Following the move, the moved-from object is in the same state as if constructed
          using the <code class="computeroutput">stream_descriptor(io_context&amp;) constructor</code>.
        </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2003-2018 Christopher M. Kohlhoff<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../posix__stream_descriptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="read_some.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
